package com.slearing.databaseinfoserver.enums;

public enum DbType {
    MYSQL,
    ORACLE,
    DM;

    public static DbType fromDriverClassName(String driverClassName) {
        if (driverClassName == null) return null;
        String lower = driverClassName.toLowerCase();
        if (lower.contains("mysql")) return MYSQL;
        if (lower.contains("oracle")) return ORACLE;
        if (lower.contains("dm")) return DM;
        return null;
    }
} 
